//要求名字能包含多个单词，向下调整成绩A~C

#include<iostream>
#include<string.h>

struct Student
{
	char f_name[10], l_name[10];
	char grade, Grade;
	int age;

};

int main()
{
	Student s;
	std::cout << "What is your first name? ";
	std::cin.getline(s.f_name, 10);
	std::cout << "What is your last name? ";
	std::cin.getline(s.l_name, 10);
	std::cout << "What letter grade do your deserve? ";
	std::cin >> s.grade;

	if (s.grade >= 'A' && s.grade < 'C')
		s.Grade = s.grade + 1;
	else
		s.Grade = 'C';
	std::cout << "What is your age? ";
	std::cin >> s.age;


	std::cout << "Name: " << s.l_name << ", " << s.f_name
		<< "\nGrade: " << s.Grade
		<< "\nAge: " << s.age << std::endl;
}
